package model;

import java.util.Date;

public abstract class Model {
    public final static int RED_CAMP = 1;
    public final static int BLUE_CAMP = 0;
    public final static int SCENE_CAMP = 2;

    protected int camp;// 阵营
    protected long gameid;// 游戏内部编号
    protected int speed;
    protected int dbid; // 数据库id
    protected int blood;

    public Model(int camp, int dbid) {
        this.camp = camp;
        this.dbid = dbid;
        gameid = new Date().getTime();
    }

    // set&get
    public int getCamp() {
        return camp;
    }

    public void setCamp(int camp) {
        this.camp = camp;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public int getDbid() {
        return dbid;
    }

    public void setDbid(int dbid) {
        this.dbid = dbid;
    }

    public long getGameid() {
        return gameid;
    }

    public int getBlood() {
        return blood;
    }
}
